package com.monkeyboy.spring.service;

import org.springframework.context.annotation.Primary;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Priority;
import java.lang.annotation.Annotation;

/**
 * @Author Gavin
 * @date 2021.05.05 18:13
 */
@Component
//@Priority(97)//属性注入的时候，值越小的bean会被注入
//@Primary 属性注入的时候首先判断注入类型的bean有没有@Primary，并且只能有一个
public class C implements I{
	@Override
	public void say() {
		System.out.println("cccccccccccccccccccccccccccc");
	}
}
